
<div class="layui-form-item">
  <label class="layui-form-label">标题<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" name="title" id="info_title" class="layui-input modelform_title" value="{$r?$r['title']:''}" style="" autocomplete="off">
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">缩略图<span>364*300</span></label>
  <div class="layui-input-inline file-upload">
		<input type="text" name="thumb" id="info_thumb" value="{$r?$r['thumb']:''}" autocomplete="off" class="layui-input"/>
		<div class="layui-btn-group">
			<button type="button" class="layui-btn" onclick="previewImg('info_thumb')"><i class="layui-icon">&#xe64a;</i>预览</button>
			<button type="button" class="layui-btn fastupimg" data-input_id="info_thumb" data-listtype="img" id="info_thumb_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
			<button type="button" class="layui-btn" onClick="selectfile('info_thumb','','img')"><i class="layui-icon">&#xe67c;</i>浏览</button>
		</div>
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">时间<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" autocomplete="off" name="newstime" id="info_newstime" value="<?=$r?date("Y-m-d H:i:s",$r['newstime']):date("Y-m-d H:i:s")?>" style=""  data-format="yyyy-MM-dd HH:mm:ss" class="layui-input form-date">
  </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">产品说明书<span></span></label>
  <div class="layui-input-inline file-upload">
		<input type="text" name="explain" id="info_explain" autocomplete="off" class="layui-input modelform_explain" value="{$r?$r['explain']:''}" style=""/>
		<div class="layui-btn-group">
			<button type="button" class="layui-btn" onclick="downloadFile('info_explain')"><i class="layui-icon">&#xe601;</i>下载</button>
			<button type="button" class="layui-btn fastupimg" data-input_id="info_explain" data-listtype="file" id="info_explain_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
			<button type="button" class="layui-btn" onClick="selectfile('info_explain','','file')"><i class="layui-icon">&#xe67c;</i>浏览</button>
		</div>
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">产品视频<span></span></label>
  <div class="layui-input-inline file-upload">
		<input type="text" name="video" id="info_video" autocomplete="off" class="layui-input modelform_video" value="{$r?$r['video']:''}" style=""/>
		<div class="layui-btn-group">
			<button type="button" class="layui-btn" onclick="playVideo('info_video')"><i class="layui-icon">&#xe6ed;</i>播放</button>
			<button type="button" class="layui-btn fastupimg" data-input_id="info_video" data-listtype="video" id="info_video_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
			<button type="button" class="layui-btn" onClick="selectfile('info_video','','video')"><i class="layui-icon">&#xe67c;</i>浏览</button>
		</div>
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">标签<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" name="biaoqian" id="info_biaoqian" class="layui-input modelform_biaoqian" value="{$r?$r['biaoqian']:''}" style="" autocomplete="off">
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">背景图片<span></span></label>
  <div class="layui-input-inline file-upload">
		<input type="text" name="background" id="info_background" value="{$r?$r['background']:''}" autocomplete="off" class="layui-input"/>
		<div class="layui-btn-group">
			<button type="button" class="layui-btn" onclick="previewImg('info_background')"><i class="layui-icon">&#xe64a;</i>预览</button>
			<button type="button" class="layui-btn fastupimg" data-input_id="info_background" data-listtype="img" id="info_background_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
			<button type="button" class="layui-btn" onClick="selectfile('info_background','','img')"><i class="layui-icon">&#xe67c;</i>浏览</button>
		</div>
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">描述</label>
  <div class="layui-input-inline">
	<textarea autocomplete="off" name="description1" id="info_description1" style="" class="layui-input">{$r?$r['description1']:''}</textarea>
  </div>
</div>	
<div class="layui-form-item">
	<label class="layui-form-label">产品特点<span></span></label>
    <div class="layui-input-inline morevalue">
		<script>
			var characteristic_form_js='<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="characteristic_0[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,characteristic_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>';
		</script>
		<table class="layui-table" style="border-right:1px solid #ccc">
			<thead><tr><th style="width:20%">产品特点<input type="hidden" name="characteristic_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:10%">操作</th></tr></thead>
			<tbody>
				<?php
				if($r['characteristic']){
					$morevalue=$r['characteristic'];
					$morevalue_arr=explode("{{RsSplit}}",$morevalue);
					foreach($morevalue_arr as $k=> $v){
						if(!$v){break;}
						$vs=explode("{{FieldSplit}}",$v);
				?>				
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="characteristic_0[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,characteristic_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
					}                     
				}else{
				?>
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="characteristic_0[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,characteristic_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
				}
				?>									
			</tbody>
		</table>
    </div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label">产品应用图片<span></span></label>
    <div class="layui-input-inline morepic">
        <div class="morepic_box">
            <div class="piclist" data-field="images">
                <ul id="images_piclist_ul">
                    <?php
                    if($r){
                        $morepic=$r['images'];
                        $morepic_arr=explode("\r\n",$morepic);
                        foreach($morepic_arr as $v){
                            if(!$v){break;};
                            $vs=explode("||",$v);
                    ?>
                    <li title="拖动我是可以排序的哦" draggable="false">
                        <a class="piclist_img images_fancybox" rel="images_rel" title="<?=$vs[2]?>" href="<?=$vs[1]?>">
                            <img src="<?=$vs[0]?>" draggable="false">
                            <input type="hidden" name="images_smallimg[]" value="<?=$vs[0]?>">
                            <input type="hidden" name="images_bigimg[]" value="<?=$vs[1]?>">
                        </a>
                        <div class="piclist_title"><input type="text" name="images_imgname[]" value="<?=$vs[2]?>"></div>
                        <div class="file-panel"><span class="cancel" onclick="delete_li(this)" title="删除图片">删除</span></div>
                    </li>
                    <?php
                        }                     
                    }
                    ?>
                    <li class="add_morepic" id="images_add_button" title="增加图片" onclick="selectfiles('images',moreimg,'img','1600','')">
                        <div class="piclist_img">+</div>
                    </li>                                                
                    <div class="clear"></div>
                </ul>
            </div>                                        
        </div>
    </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">技术参数<span></span></label>
  <div class="layui-input-inline">
        <div class="news_editor" editor_name="parameter" editor_width="0%" editor_height="500" imgwidth="1600" imgheight=""><script id="parameter" name="parameter" type="text/plain">{$r?htmlspecialchars_decode($r['parameter']):''}</script></div>
        远程图片保存本地<input type="checkbox" name="parameter_saveFile" lay-ignore value="1" checked> &nbsp;&nbsp;
        提取第一张图做为缩略图（如果缩略图为空的情况下）<input type="checkbox" lay-ignore  name="parameter_getFirstImg" value="1">   
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">产品详情<span></span></label>
  <div class="layui-input-inline">
        <div class="news_editor" editor_name="content" editor_width="100%" editor_height="500" imgwidth="1600" imgheight=""><script id="content" name="content" type="text/plain">{$r?htmlspecialchars_decode($r['content']):''}</script></div>
        远程图片保存本地<input type="checkbox" name="content_saveFile" lay-ignore value="1" checked> &nbsp;&nbsp;
        提取第一张图做为缩略图（如果缩略图为空的情况下）<input type="checkbox" lay-ignore  name="content_getFirstImg" value="1">   
  </div>
</div>	
<div class="layui-form-item">
	<label class="layui-form-label">产品组成<span></span></label>
    <div class="layui-input-inline morevalue">
		<script>
			var other_form_js='<tr><td class="morevalue_image"><input value="" id="randImgId" name="other_0[]"><a class="layui-btn layui-btn-sm" onClick="selectfile(\'randImgId\',\'\',\'img\',\'\',\'\')"><i class="layui-icon">&#xe681;</i></a><a class="layui-btn layui-btn-sm" onClick="morevaluePreImg(\'randImgId\')"><i class="layui-icon">&#xe615;</i></a></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="other_1[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="other_2[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,other_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>';
		</script>
		<table class="layui-table" style="border-right:1px solid #ccc">
			<thead><tr><th style="width:20%">缩略图<input type="hidden" name="other_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:20%">标题<input type="hidden" name="other_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:20%">跳转链接<input type="hidden" name="other_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:10%">操作</th></tr></thead>
			<tbody>
				<?php
				if($r['other']){
					$morevalue=$r['other'];
					$morevalue_arr=explode("{{RsSplit}}",$morevalue);
					foreach($morevalue_arr as $k=> $v){
						if(!$v){break;}
						$vs=explode("{{FieldSplit}}",$v);
				?>				
				<tr><td class="morevalue_image"><input value="<?=$r?$vs['0']:''?>" id="other_0_<?=$k?>" name="other_0[]"><a class="layui-btn layui-btn-sm"  onClick="selectfile('other_0_<?=$k?>','','img','','')"><i class="layui-icon">&#xe681;</i></a><a class="layui-btn layui-btn-sm"  onClick="morevaluePreImg('other_0_<?=$k?>')"><i class="layui-icon">&#xe615;</i></a></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['1']:''?>" name="other_1[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['2']:''?>" name="other_2[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,other_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
					}                     
				}else{
				?>
				<tr><td class="morevalue_image"><input value="<?=$r?$vs['0']:''?>" id="other_0_<?=$k?>" name="other_0[]"><a class="layui-btn layui-btn-sm"  onClick="selectfile('other_0_<?=$k?>','','img','','')"><i class="layui-icon">&#xe681;</i></a><a class="layui-btn layui-btn-sm"  onClick="morevaluePreImg('other_0_<?=$k?>')"><i class="layui-icon">&#xe615;</i></a></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['1']:''?>" name="other_1[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['2']:''?>" name="other_2[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,other_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
				}
				?>									
			</tbody>
		</table>
    </div>
</div>